import { request } from "../../utils/request";

//获取所有的笔记
export function ApigetALlNotes ()
{
	return request({
		method: "GET",
		url:"note/getAllNote"
	})
}

//添加笔记
export function ApiaddNote(data={})
{
	return request({
		method: "POST",
		url:"note/addNote",
		data
	})
}

//编辑编辑
export function ApieidtoNote(data={})
{
	return request({
		method: "POST",
		url:"note/updateNote",
		data
	})
}

//根据id删除编辑
export function ApideleteById(noteId)
{
	return request({
		method: "POST",
		url:`note/deleteNote?noteId=${noteId}`
	})
}

//ai润色
export function ApiAiUpdateNote(data={})
{
	return request({
		method: "POST",
		url:"note/runNote",
		data
	})
}